package com.example.service;

import com.example.entity.User;

import java.util.List;

public interface UserService {
    List<User> list();

    User getById(Long id);

    void save(User user);

    void update(User user);

    void delete(Long id);

    User findByUsername(String currentUsername);
}